const routes = [

    // 快递查询
    {
        name: "delivery",
        path: "/delivery/list",
        component: "/delivery/list"
    },
    {
        name: "recover",
        path: "/delivery/list/recoverList",
        component: "/delivery/recoverList",
        hideInMenu: true
    },
    {
        name: "history",
        path: "/delivery/list/historyList",
        component: "/delivery/historyList",
        hideInMenu: true
    },

    {
        name: "deliveryDetail",
        path: "/delivery/list/detail/:id",
        component: "/delivery/detail",
        hideInMenu: true
    },

    // 无人车订单管理
    {
        name: "unmannedCar",
        path: "/unmannedCar/list",
        component: "/unmannedCar/list"
    },
    {
        name: "unmannedCarDetail",
        path: "/unmannedCar/list/detail/:id",
        component: "/unmannedCar/detail",
        hideInMenu: true
    },
    // 盘点管理
    {
        name: "taking",
        path: "/taking/list",
        component: "/taking/list"
    },
    // 接驳管理
    {
        name: "batch",
        path: "/batch/list",
        component: "/batch/list"
    },
    {
        name: "batchDetail",
        path: "/batch/list/detail",
        component: "/batch/detail",
        hideInMenu: true
    },
    {
        name: "batchPrint",
        path: "/batch/list/print",
        component: "/batch/print",
        hideInMenu: true
    },
    // ocr批量校验
    {
        name: "ocrCheckLogis",
        path: "/ocrCheck/logis",
        component: "/ocrCheck/logis"
    },
    {
        name: "ocrCheckInfo",
        path: "/ocrCheck/logis/check",
        component: "/ocrCheck/check",
        hideInMenu: true
    },
    // 问题订单
    {
        name: "issue",
        path: "/issue/list",
        component: "/issue/list"
    },
    {
        name: "issueDetail",
        path: "/issue/list/detail/:id",
        component: "/delivery/detail",
        hideInMenu: true
    },
    // 退回管理
    {
        name: "withdraw",
        path: "/withdraw/list",
        component: "/withdraw/list"
    },
    {
        name: "withdrawDetail",
        path: "/withdraw/list/detail/:bid",
        component: "/withdraw/detail",
        hideInMenu: true
    },
    // 问题件管理
    {
        name: "problem",
        path: "/problem/list",
        component: "/problem/list"
    },
    // 问题件详情
    {
        name: "problemDetail",
        path: "/problem/list/detail/:id",
        component: "/problem/detail"
    },
    // 问题类型管理
    {
        name: "problemList",
        path: "/problem/list/problemList",
        component: "/problem/problemList"
    },
    // 到付件管理
    {
        name: "payexp",
        path: "/payexp/list",
        component: "/payexp/list"
    },
    {
        name: "problemDetail",
        path: "/payexp/list/detail/:id",
        component: "/delivery/detail",
    },
    // 运营数据日清
    {
        name: "dataClearList",
        path: "/dataClear/list",
        component: "/dataClear/list",
    },
    {
        name: "dataClearDetail",
        path: "/dataClear/list/detail",
        component: "/dataClear/detail",
        hideInMenu: true,
    },
    // 日志查询
    {
        name: "logList",
        path: "/log/list",
        component: "/log/list",
    },
    {
        name: "logDetail",
        path: "/log/list/detail",
        component: "/log/detail",
        hideInMenu: true,
    },
]

const logisCenter = routes.map((route: any) => {

    route.path = `/logisCenter${route.path}`;
    route.component = `./logisCenter${route.component}`;
    return route;
}, {});

export default [
    {
        name: "logisCenter",
        path: "/logisCenter",
        icon: "smile",
        routes: [
            ...logisCenter,
            {
                component: "./404"
            }
        ]
    },
];
